<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<title>speech.sample package</title>
<head>
<!--

  @(#)package.html	1.60 98/01/27

  Copyright 1998 Sun Microsystems, Inc. 901 San Antonio Road, 
  Palo Alto, California, 94303, U.S.A.  All Rights Reserved.

  This software is the confidential and proprietary information of Sun
  Microsystems, Inc. ("Confidential Information").  You shall not
  disclose such Confidential Information and shall use it only in
  accordance with the terms of the license agreement you entered into
  with Sun.

  CopyrightVersion 1.2

-->
</head>
<body bgcolor="white">

Provides a sample of using {@link jspeech.SpeechRecognizer} and {@link jspeech.SpeechSpeaker}.


<h2>Example:</h2>

<h3>SpeechSpeaker</h3>
// Create SpeechSpeaker<br>
<i>SpeechSpeaker speak = new SpeechSpeaker();<br></i>
// Start the speak<br>
<i>speak.start();<br></i>
// Using the <i>TTS()</i> to triger the program to speak out the text<br>
<i>speak.TTS("Hello! I am Mary!!");<br></i>
// Set using Mike voice <br>
<i>speak.setVoice(SpeechSpeakerConfiguration.VOICE_MIKE);<br></i>
<i>speak.TTS("Hello! I am Mike!!");<br></i>
// Close the speaker<br>
<i>speak.close();<br></i>

<h3>SpeechRecognizer</h3>
// Create SpeechRecognizer<br>
<i>SpeechRecognizer recognizer = new SpeechRecognizer();<br></i>
// Start the recognizer<br>
<i>recognizer.start();<br></i>
// Close the recognizer<br>
<i>recognizer.close();<br></i>

<!-- Put @see and @since tags down here. -->

</body>
</html>

